package com.ysjweb.dish.Mapper;

import com.ysjweb.dish.pojo.Couple;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SuggestionMapper {
    @Insert("insert into usercreatedish values (#{UserId},#{DishId})")
    public Couple AddConnection(Integer DishId,Integer UserId);

    @Select("SELECT suggestion from suggestion where user_id=#{UserId} and dish_id=#{DishId}")
    public String GetSuggestion(Integer UserId,Integer DishId);
}
